package cn.yqx.bankshop.goods.service.impl;

import cn.yqx.bankshop.goods.dao.BuShoppingCartMapper;
import cn.yqx.bankshop.goods.pojo.BuShoppingCart;
import cn.yqx.bankshop.goods.pojo.BuShoppingCartExample;
import cn.yqx.bankshop.goods.service.ShoppingCartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShoppingCartServiceImpl implements ShoppingCartService {
    @Autowired
    BuShoppingCartMapper mapper ;
    @Override
    public List<BuShoppingCart> getShoppingCarts(Long userid) {
        BuShoppingCartExample example = new BuShoppingCartExample() ;
        example.or().andUserIdEqualTo(userid) ;
        return null;
    }

    @Override
    public int getShoppingCartNum(Long userid) {
        return mapper.getShoppingCartNum(userid);
    }


}
